import { Component, OnInit } from "@angular/core";
import { InnerMqService } from "src/app/rx/service/inner-mq.service";
import { Topic } from "src/app/rx/topic";

@Component({
	selector: 'app-test-b',
	templateUrl: 'test-b.component.html',
	styleUrls: ['test-b.component.scss'],
})
export class TestBComponent implements OnInit {

	constructor(
		private innerMqService: InnerMqService,
	) {
	}

	ngOnInit(): void {
	}

	send(): void {
		this.innerMqService.pub(Topic.MY_TP_1, '来自test-b的消息');
	}

}
